package com.fingard.dsp.bank.directbank.bankInterface;

import com.fingard.generalobj.NoticeReq;
import com.fingard.generalobj.NoticeResp;
import com.fingard.net.listener.SocketReceiver;

/**
 * 异步通知统一入口
 */
public interface IAcceptNotice {
    /**
     * 异步通知
     *
     * @param pNtReq
     * @return
     * @throws Exception
     */
	NoticeResp dealNotice(NoticeReq pNtReq) throws Exception;

    /**
     * 读取请求数据内容(Socket异步通知侦听需实现该方法)
     *
     * @param p_receiver
     * @throws Exception
     */
    void getContentLength(SocketReceiver p_receiver) throws Exception;
}